package web.exportfile;

import org.springframework.boot.SpringApplication;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController  
@RequestMapping("/factorymethod") 
public class Client {
		@RequestMapping("/{type}")  
	    public Object view(@PathVariable("type") Integer type) {  
	        boolean flag = ExportFactory.export.getAPI(type, "导出数据");
	        return "成功!";  
	    }  
	    public static void main(String[] args) {  
	    	SpringApplication.run(Client.class);  
	    }  
	   
}
